<!-- Teacher_DaliyReviewedFrameDetail_Frame.html -->
<!--老师查看未审核日报详情-->
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
		<title>老师端日报详情页</title>
		<script src="../../script/mui.min.js"></script>
		<script src="../../script/jquery.min.js" type="text/javascript"></script>
		<script src="../../script/timecontrol.min.js"></script>
		<script src="../../script/common.js"></script>
		<link rel="stylesheet" href="../../css/mui.min.css" />
		<link rel="stylesheet" href="../../css/timecontrol.min.css" />
		<!--<link rel="stylesheet" href="../../css/CFNetPP_Base.css">-->
		<link rel="stylesheet" href="../../css/base.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/weui.min.css">
		<script type="text/javascript" charset="utf-8">
			mui.init();
		</script>
	</head>
	<body>
		<div class="writeReport">
			<div class="ReviewWeekly_div top_54" >
				<ul class="mui-table-view">
					<li class="mui-table-view-cell base_dark_grey" id="timediv_one" style="display: none">
						<div class="cell_left_img_div">
							<img class="cell_img" src="../../image/icon_clock.png" alt="">
						</div>
						<span class="time_span base_title_font" > 应交日期:</span>
						<span class="time_span base_title_font" id="nomal_time"> </span>
					</li>
					<li class="mui-table-view-cell base_dark_grey" id="timediv_two">
						<div class="cell_left_img_div">
							<img class="cell_img" src="../../image/icon_clock.png" alt="">
						</div>
						<span class="time_span base_title_font" > 提交日期:</span>
						<span class="time_span base_title_font" id="now_time"> </span>
					</li>
				</ul>
			</div>
			<div class="ReviewWeekly_div">
				<div class="feeling">
					<p class="title">
						本日总结
					</p>
					<div class="feeling-text">
						<p id="summary" style=" word-break: break-all">
							是 <!--四大美女四大金刚的感觉金黄色的个结婚吗三等功三毒黄瓜斌和慕斯蛋糕设计的大概是谁没打过啥都没干后没你事海水倒灌金黄色的个吧们。三等功金黄色的个吧内部石膏板南京蛤蟆上个班是几十个喜欢订的高科技四大金刚后第三款估计明年。-->
						</p>
					</div>
				</div>
			</div>
			<div class="ReviewWeekly_div">
				<p class="title titlepos">
					老师评语
				</p>
				<div class="padding10">
					<textarea class="textarea_t" id="comment"></textarea>
				</div>
			</div>
		</div>
		
	</body>
	<script src="../../script/common.js"></script>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript" src="../../script/MD5.js"></script>
	<script type="text/javascript" src="../../script/requestTool.js"></script>
	<script type="text/javascript" src="../../script/base64.min.js"></script>
	<script type="text/javascript" src="../../script/common.js"></script>
	<script type="text/javascript" src="../../script/copyTool.js"></script>
	<script type="text/javascript">
		var sid = 0;
		var commentScore = '';
		var parten = /^\s*$/;
		var dailyid = '';
		var type = '';
		var stuid = '';
		apiready = function() {
			// SendBehaviorTrajectoriesNotifi1('0', '老师端日报列表详情', '102', api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname, document.title);
			var pageParam = api.pageParam;
			dailyid = pageParam.dailyid;
			stuid = pageParam.stuid;
			type = pageParam.type;
			loadDailyData();
			document.getElementById("comment").readOnly = true;
			blockAddCopyClickWithIdArr(["summary","comment"]);
		}
		//获取日报详情数据
		function loadDailyData() {
			var param = {
				dailyid : dailyid //未审核状态的日报列表
			};
			cfnetppPOST(urlLswkinfo, param, false, function(data, status) {
			
			
				if (status == 'success') {
					if (data.status == 1) {
						var list = data.json;
						if (list != null) {
							var name = list.rename1;
							$('#weekly_page').text(name + "的日报");
							var time = parseInt(list.weeklytime);
							var comments = list.comments;
							var weeklytime = getLocalTime(time);
							if (isSameToday(weeklytime, list.time) == true) {
								$('#now_time').text(weeklytime);
								$('#timediv_one').hide();
							} else {
								$('#timediv_one').show();
								$('#now_time').text(getLocalTime(list.time));
								$('#nomal_time').text(weeklytime);
							}
//							$('#time').text(weeklytime);
							$('#summary').text(Base64.decode(list.summary));
							if (type == 1) {//已审核

								$('#comment').text(Base64.decode(api.pageParam.comment));
							}
						} else {
							api.toast({
								msg : '获取数据失败',
								duration : 2000,
								location : 'bottom'
							});
						}
					} else {
						api.toast({
							msg : '获取数据失败',
							duration : 2000,
							location : 'bottom'
						});
					}
				} else {
					api.toast({
						msg : '网络连接失败',
						duration : 2000,
						location : 'bottom'
					});
				}
			});
		}

		// function backClick() {
		// 	SendBehaviorTrajectoriesNotifi1('1', '老师端日报列表详情', '102', api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname, document.title);
		// 	api.closeWin();
		// }
	</script>
</html>